With Code Snippets, you can easily store code blocks and content for reuse. Comment your snippets just as you would any code block.
![]() |
To create a code snippet: |
Before adding a snippet, you need to create a folder.
Right-click a snippet to edit or delete it.
You can create additional folders as needed. The default location for snippets is the \UserData\Snippets folder below your root directory.
Tip | Because snippets can be created as start and end blocks, you can use them to surround other tags and content. This is handy for inserting special formatting, navigation elements, and script blocks. Simply highlight the content you want to surround, then insert the snippet. |
To insert a snippet, double-click an entry in the Snippets panel or right-click and select Insert into document from the menu.
Use the snippets shortcut menus to manage snippets and snippet folders.
You can share code snippets with other developers by giving them access to a shared folder on your machine or on another network machine.
![]() |
To create a shared snippets folder: |
The new folder appears in the Snippets list.
Anyone with access to the shared folder can now add, edit, and delete snippets.
Open the Options > Customize dialog box and select the Snippet Shortcuts tab to enable a keyboard combination for a snippet. Select a snippet and press keys to enter the combination in the box at the bottom.
If a combination is in use, the current command appears below the shortcut box. To overwrite a combination, click Apply.